Make building the test print backend optional
authorMatthias Clasen <matthiasc@src.gnome.org>
Sun, 29 Apr 2007 03:41:53 +0000 (03:41 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 29 Apr 2007 03:41:53 +0000 (03:41 +0000)
svn path=/trunk/; revision=17687

ChangeLog
configure.in
modules/printbackends/Makefile.am

index 4d7f057b2192059904044bab5633d2c77186cf0f..d4d2d0787932587dcebfe8d75d0e0d9a0a51ea8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-04-28  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Add --enable-test-print-backend, defaulting
+       to no.
+
+       * modules/printbackends/Makefile.am: Make building the test
+       print backend conditional.
+
 2007-04-28  Matthias Clasen  <mclasen@redhat.com>
 
        * modules/printbackends/lpr/*:
index 09b550765dd5f50d0d3d9365624c9843531b7a64..7113cec10d966268c3ca687d9c31c600966f5427 100644 (file)
@@ -253,6 +253,7 @@ else
   fi
 fi
 
+
 if test "x$enable_visibility" = "xno"; then
   GTK_DEBUG_FLAGS="$GTK_DEBUG_FLAGS -DDISABLE_VISIBILITY"
 fi
@@ -1551,6 +1552,13 @@ fi
 CPPFLAGS="$gtk_save_cppflags"
      
                                
+AC_ARG_ENABLE(test-print-backend,
+              [AC_HELP_STRING([--enable-test-print-backend],
+                              [build test print backend])],,
+              [enable_test_print_backend=no])
+AM_CONDITIONAL(TEST_PRINT_BACKEND, test "x$enable_test_print_backend" != "xno")
+
+
 ################################################################
 # Strip -export-dynamic from the link lines of various libraries
 ################################################################
index 58c03da851027a29fb26f81b61d13b6a31ae6f8b..444a92dc718041024507d16689681ccc63b4c031 100644 (file)
@@ -1,7 +1,11 @@
-SUBDIRS = file lpr test
+SUBDIRS = file lpr
 
 if HAVE_CUPS
 SUBDIRS += cups
 endif
 
-DIST_SUBDIRS=cups file lpr test
+if TEST_PRINT_BACKEND
+SUBDIRS += test
+endif
+
+DIST_SUBDIRS = cups file lpr test